package cn.org.timespace.easyframe.util.sms;

import java.io.IOException;

public class Test {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		/*int index = 0;
		String   command= "ping  http://www.hao123.com"; 
		Process   process   =   Runtime.getRuntime().exec(command); 
		BufferedReader   bufferedreader   =   new   BufferedReader(new   InputStreamReader(process.getInputStream())); 
		String   line   =   bufferedreader.readLine(); 
		for(;line   !=   null;)   { 
			String   nextLine   =   bufferedreader.readLine(); 
			//�ڴ˴����õ�ping��!��Ϣ�������±ߵĴ�ӡ 
			//System.out.println(+line); 
			line   =   nextLine; 
			index++;
			while(index == 18){//��ȡPackets: Sent = ?, Received = ?, Lost = ? (100% loss),��һ����Ϣ����18����Ϣ��
				String str = line.trim();
				int a = str.indexOf("(");
				int b = str.indexOf("%");
				String str1 = str.substring(a+1, b);					
				System.out.println(str1);//str1 = 0��ʾ��;str1 = 25��ʾæµ;str1 = 50��75��ʾ�쳣;str1 = 100��ʾ�Ͽ�
				//System.out.println(str);
				break;
			}
		} 
		bufferedreader.close(); */
		String userPhone="13560129096,13610251072";
		String content="���Զ��ţ��յ���ظ�";
		System.out.println(SmsManager.sendSmsManager(userPhone, content));

	}

}
